package com.woniuxy.mapper;

import com.woniuxy.entity.Storage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface StorageMapper {
    //@Param("stock") Integer stock,
    //            @Param("productId") Integer productId
    //
    @Update(" update storage set stock = stock - #{stock} where product_id = #{productId}")
    void update(Storage storage);
}
